package com.stack;

/**
 * @author xiangui
 * 描述: 虚拟机栈和本地方法的溢出
 * 时间: Create in 10:33 2018/7/11
 */
public class JavaVMStackSOF {

    private int stackLength = 1;

    public void stackLeak(){
        stackLength++;
        stackLeak();
    }

    public static void main(String[] args) throws Throwable{
        JavaVMStackSOF javaVMStackSOF = new JavaVMStackSOF();
        try {
            javaVMStackSOF.stackLeak();
        }catch (Throwable e){
            throw e;
        }
    }

}
